import {createRouter,createWebHistory} from "vue-router";
import LoginView from '../views/LoginView.vue'
import IndexView from "../views/IndexView.vue";

const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: "/",
            name: "Login",
            component: LoginView,
        },
        {
            path: "/phonelogin",
            component: ()=> import("../views/PhoneLoginView.vue"),
            name: "PhoneLogin"
        },
        {
            path: "/register",
            component: ()=> import("../views/RegisterView.vue"),
            name: "Register",
        },
        {
            path: "/index",
            component: ()=> import("../views/IndexView.vue"),
            name: "Index",
        },
        {
            path: "/appointment",
            component: ()=> import("../views/AppointmentView.vue"),
            name: "Appointment"
        },
        {
            path: "/appointmentlist",
            component: ()=> import("../views/AppointmentListView.vue"),
            name: "AppointmentList"
        },
        {
            path: "/appointmentsuccess",
            component: ()=> import("../views/AppointmentSuccessView.vue"),
            name: "AppointmentSuccess"
        },
        {
            path: "/appointmentcancel",
            component: ()=> import("../views/AppointmentCancelView.vue"),
            name: "AppointmentCancel"
        },
        {
            path: "/register",
            component: ()=> import("../views/RegisterView.vue"),
            name: "Register"
        },
        {
            path: "/reportlist",
            component: ()=> import("../views/ReportListView.vue"),
            name: "ReportList"
        },
        {
            path: "/report",
            component: ()=> import("../views/ReportView.vue"),
            name: "Report"
        },
        {
            path: "/hospital",
            component: ()=> import("../views/HospitalView.vue"),
            name: "Hospital"
        },
        {
            path: "/setmeal",
            component: ()=> import("../views/SetmealView.vue"),
            name: "Setmeal"
        },
        {
            path: "/personal",
            component: ()=> import("../views/PersonalView.vue"),
            name: "Personal"
        },
        {
            path: "/comfirmorder",
            component: ()=> import("../views/ConfirmOrderView.vue"),
            name: "ComfirmOrder"
        },
        {
            path: "/selectdate",
            component: ()=> import("../views/SelectDateView.vue"),
            name: "Selectdate"
        },
        {
            path: "/aichat",
            component: ()=> import("../views/AiChatView.vue"),
            name: "AiChat"
        },
        {
            path: "/echartsshow",
            component: ()=> import("../views/EchartsShowView.vue"),
            name: "EchartsShow"
        },
        {
            path: "/questionaire",
            component: ()=> import("../views/QuestionaireView.vue"),
            name: "Questionaire"
        },
        {
            path: "/questionairesuccess",
            component: ()=> import("../views/QuestionaireSuccessView.vue"),
            name: "QuestionaireSuccess"
        },
    ]
});

export default router;